package ex;

import java.util.Scanner;

public class ex6 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.print("输入一个数");
        int num=sc.nextInt();
        System.out.println("它的平方为"+num*num);
        System.out.println("输入减数");
        int num1=sc.nextInt();
        System.out.print("被减数");
        int num2=sc.nextInt();
        int result=num1-num2;
        System.out.print("差为"+result);
    }
}